import BaseCommand from "@/core/Frame/BaseClass/BaseCommand";
import { isJSDocThisTag } from "typescript";

const PIE = window.PIE
class ShadowRateCommand extends BaseCommand {
  viewer: any;
  globe: any;
  globeControl: any;

  constructor(params: any) {
    super();
    this.viewer = params.viewer;
    this.globe = this.viewer.getGlobe();
    this.globeControl = this.viewer.getGlobeControl()
  }

  execute(option: any) {
    this.globeControl.setGlobeTool(PIE.GlobeToolType.Analyse3DSunshine)
  }

  release() {
    this.globeControl.setGlobeTool(PIE.GlobeToolType.Pan)
  }

  isEnable(option: any) {
    return true
  }
}

export default ShadowRateCommand